home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 050 / borcolor.arc / BORCOLOR.TXT
Encoding:
Text File  |  1985-10-04  |  768 b   |  24 lines

  1.              HOW TO SET THE BORDER COLOR ON A COLOR MONITOR
  2.                  USING ASSEMBLY LANGUAGE OR TURBO PASCAL
  3.  
  4.  
  5.  
  6.          I have heard it said before that you must program in BASIC
  7.     to set the border color on a color monitor.  I have always thought
  8.     that this was wrong, but could not prove it until now.  In assembly
  9.     language the code is as follows:
  10.  
  11.         MOV AL,XX    ;in place of XX substitute the number for the
  12.                  ;color of the border (ie. 0=black, 1=blue ...)
  13.             MOV DX,03D9
  14.              OUT DX,AL
  15.  
  16.     In Turbo Pascal, this can be done in one statement as follows:
  17.  
  18.         Port[03D9] := XX;   {in place of XX substitute the color number
  19.                           as mentioned above}
  20.  
  21.  
  22.     Bill Davis
  23.     Fredericksburg, VA
  24.